package com.jdrx.sw.sewage.beans.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "AlarmDetailVO", description = "告警详情")
public class AlarmDetailVO {
    @ApiModelProperty(value = "告警id")
    private Long id;

    @ApiModelProperty(value = "站点名称")
    private String stationName;

    @ApiModelProperty(value = "站点的经度")
    private Double lon;

    @ApiModelProperty(value = "站点的纬度")
    private Double lat;

    @ApiModelProperty(value = "工艺单元名称")
    private String processunitName;

    @ApiModelProperty(value = "告警信息")
    private String alarmInfo;

    @ApiModelProperty(value = "告警级别(1-黄色告警 2-红色告警)")
    private Integer alarmLevel;

    @ApiModelProperty(value = "告警状态(0-未处理 1-处理中 2-已完成)")
    private Integer alarmStatus;

    @ApiModelProperty(value = "故障编号(例如SB2001010001)")
    private String alarmNum;

    @ApiModelProperty(value = "告警时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "告警结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "责任人名字  ,张三,李四,")
    private String dutyUserNames;

    @ApiModelProperty(value = "责任人主键ID  ,1,2,3,")
    private String dutyUserIds;

    @ApiModelProperty(value = "告警类型(对应字典表id)")
    private Long alarmType;

    @ApiModelProperty(value = "告警类型名称")
    private String alarmTypeName;

    //设备信息相关
    @ApiModelProperty(value = "设备ID", required = true)
    private Long deviceId;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "设备生产厂家", required = true)
    private String deviceFactory;

    @ApiModelProperty(value = "设备照片", required = true)
    private String attach;

    @ApiModelProperty(value = "历史故障次数")
    private Integer historyFaultNum;

    @ApiModelProperty(value = "厂区", required = true)
    private String factoryPeriod;
}
